package com.example.novelweb.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.novelweb.common.BaseResponse;
import com.example.novelweb.model.dto.comment.CommentAddRequest;
import com.example.novelweb.model.dto.comment.CommentQueryRequest;
import com.example.novelweb.model.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.novelweb.model.vo.CommentVO;

import java.util.List;

/**
* @author PERSON
* @description 针对表【comment(用户评论)】的数据库操作Service
* @createDate 2025-02-01 19:00:08
*/
public interface CommentService extends IService<Comment> {

  BaseResponse<Page<CommentVO>> pageCommentByNovelId(CommentQueryRequest commentQueryRequest);

  void updateLikesByAdd(Long commentId, Long curNum);

  BaseResponse<Long> add(CommentAddRequest commentAddRequest);

  BaseResponse<Boolean> del(Long commentId);
}
